import request from "@/utils/request";

// 分区分项参数管理分页查询 错误码 20080
export function getList(params) {
  return request({
    url: "/energy/subarea-param/list",
    method: "get",
    params,
  });
}

// 分区分项参数管理详情查看 错误码 20081
export function getDetail(params) {
  return request({
    url: "/energy/subarea-param/detail?id=" + params,
    method: "get",
  });
}

// 分区分项参数管理规则模板(集合)获取 错误码 20082
export function getRuleslist(params) {
  return request({
    url: "/energy/subarea-param/ruleTemplate",
    method: "get",
    params,
  });
}

// 分区分项参数管理添加  错误码 20083
export function postSub(data) {
  return request({
    url: "/energy/subarea-param",
    method: "post",
    data,
  });
}

// 分区分项参数管理删除 错误码 20084
export function deleteSub(params) {
  return request({
    url: "/energy/subarea-param?id=" + params,
    method: "delete",
  });
}

// 分区分项参数管理修改 错误码 20085
export function putSub(data) {
  return request({
    url: "/energy/subarea-param",
    method: "put",
    data,
  });
}

// 分区分项参数管理状态修改 错误码 20086
export function putSubstatus(data) {
  return request({
    url: "/energy/subarea-param/status",
    method: "put",
    data,
  });
}
